package zhuyun.code.launcheractivity.view.adapter

import android.opengl.Visibility
import android.view.View
import com.bumptech.glide.Glide
import zhuyun.code.launcheractivity.R
import zhuyun.code.launcheractivity.model.data.HomeBean
import zhuyun.code.launcheractivity.model.data.StarUserFollwBean
import zhuyun.code.launcheractivity.utils.GlideUtil

/**
 * @author: Administrator
 * @date: 2021/11/21
 */
class StarUserFollowAdapter(val data:MutableList<StarUserFollwBean>):
    BaseQuickAdapter<StarUserFollwBean,BaseViewHolder>(R.layout.item_follow,data) {
    override fun convert(helper: BaseViewHolder, item: StarUserFollwBean) {
        GlideUtil.displayAppointImage(item.StarHead,helper.getView(R.id.image))
        helper.setText(R.id.text,item.StarName)
        helper.setVisibility(R.id.lineLeft,if(helper.adapterPosition == 0) View.VISIBLE else View.GONE)
        helper.setVisibility(R.id.lineRight,if(helper.adapterPosition == itemCount-1) View.VISIBLE else View.GONE)
    }
}